package com.atguigu.gmall.feign.order;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.order.entity.OrderInfo;
import com.atguigu.gmall.model.order.vo.OrderConfirmVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("service-order")
@RequestMapping("/api/inner/order")
public interface OrderFeignClient {

    /**
     * 获取订单页数据
     *
     * @return
     */
    @GetMapping("/getOrderConfirmVo")
    Result<OrderConfirmVo> getOrderConfirmVo();


    /**
     * 获取订单详情
     *
     * @param orderId
     * @return
     */
    @GetMapping("/getOrderInfo/{orderId}")
    public Result<OrderInfo> getOrderInfo(@PathVariable Long orderId);

}
